package com.jenings.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

@TableName("pl")
public class Comment {
    @TableId(value = "pl_id",type = IdType.AUTO)
    private Integer plId;
    private String plNr;
    private Date plTime;
    private Integer userId;
    private Integer spId;

    public Integer getPlId() {
        return plId;
    }

    public void setPlId(Integer plId) {
        this.plId = plId;
    }

    public String getPlNr() {
        return plNr;
    }

    public void setPlNr(String plNr) {
        this.plNr = plNr;
    }

    public Date getTime() {
        return plTime;
    }

    public void setTime(Date time) {
        this.plTime = time;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer usersId) {
        this.userId = usersId;
    }

    public Integer getSpId() {
        return spId;
    }

    public void setSpId(Integer spId) {
        this.spId = spId;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "plId=" + plId +
                ", plNr='" + plNr + '\'' +
                ", time=" +plTime +
                ", usersId=" + userId +
                ", spId=" + spId +
                '}';
    }
}
